<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!-- 使用datetimepikcer控件，需要加上dojo jar包 -->
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<!-- 因struts jar版本问题 必须加上此行，不然不显示datetimepicker控件 -->
<%-- <sx:head/> --%>
<%-- <sx:head extraLocales="en"/>  --%> 
<sx:head extraLocales="en-us,nl-nl,de-de" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>添加信息</title>

 </head>
<body>
<center>
添加书籍信息：
<s:form action="bookAction!add" mothod="post" namespace="/">
		
		<s:textfield name="name"  label="名称"/>
		<s:textfield name="author"   label="作者"/>
		<s:textfield name="publish"   label="出版社"/>
  		<sx:datetimepicker name="publishdate" label="出版日期" displayFormat="yyyy-MM-dd" language="en"/>
		<s:textfield name="page"   label="页数"/>
		<s:textfield name="price"   label="定价"/>
		<s:textfield name="content"   label="摘要"/>
	
			<tr>
				<td colspan="2">
					<s:submit theme="simple" value="提交"></s:submit>
					<s:reset theme="simple" value="重置"></s:reset>
				</td>
				
			</tr>
</s:form>
<hr><a href="bookAction!queryAll" method="post">查看书籍信息</a>
</center>
</body>
</html>